<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">

<head lang="en">
    <meta charset="UTF-8">
    <title>注册</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <link rel="stylesheet" href="../AmazeUI-2.4.2/assets/css/amazeui.min.css"/>
    <link href="../css/dlstyle.css" rel="stylesheet" type="text/css">
    <script src="../AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
    <script src="../AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>
    <script src=""></script>
</head>
</head>

<body>

<div class="login-boxtitle">
    <a href="home/demo.html"><img alt="" src="../images/logobig.png"/></a>
</div>

<div class="res-banner">
    <div class="res-main">
        <div class="login-banner-bg"><span></span><img src="../images/big.jpg"/></div>
        <div class="login-box">

            <div class="am-tabs" id="doc-my-tabs">
                <ul class="am-tabs-nav am-nav am-nav-tabs am-nav-justify">
                    <!--<li class="am-active"><a href="">邮箱注册</a></li>-->
                    <li><a href="">手机号注册</a></li>
                </ul>
                <div class="am-tabs-bd">
                    <!--                    邮箱注册页面信息-->
                    <!--                    <div class="am-tab-panel am-active">-->
                    <!--                        <form method="post">-->

                    <!--                            <div class="user-email">-->
                    <!--                                <label for="email"><i class="am-icon-envelope-o"></i></label>-->
                    <!--                                <input type="email" name="" id="email" placeholder="请输入邮箱账号">-->
                    <!--                            </div>-->
                    <!--                            <div class="user-pass">-->
                    <!--                                <label for="password"><i class="am-icon-lock"></i></label>-->
                    <!--                                <input type="password" name="" id="password" placeholder="设置密码">-->
                    <!--                            </div>-->
                    <!--                            <div class="user-pass">-->
                    <!--                                <label for="passwordRepeat"><i class="am-icon-lock"></i></label>-->
                    <!--                                <input type="password" name="" id="passwordRepeat" placeholder="确认密码">-->
                    <!--                            </div>-->

                    <!--                        </form>-->

                    <!--                        <div class="login-links">-->
                    <!--                            <label for="reader-me">-->
                    <!--                                <input id="reader-me" type="checkbox"> 点击表示您同意商城《服务协议》-->
                    <!--                            </label>-->
                    <!--                        </div>-->
                    <!--                        <div class="am-cf">-->
                    <!--                            <input type="submit" name="" value="注册" class="am-btn am-btn-primary am-btn-sm am-fl">-->
                    <!--                        </div>-->
                    <!--                    </div>-->


                    <!--                    手机号注册-->
                    <div class="am-tab-panel">
                        <form method="post" id="zhuce" lay-filter="zhuce" >
                            <div class="user-phone">
                                <label for="phone"><i class="am-icon-mobile-phone am-icon-md"></i></label>
                                <input type="text"  name="phone" id="phone" placeholder="请输入手机号" autocomplete="off">
                            </div>
                            <div class="verification">
                                <label for="code"><i class="am-icon-code-fork"></i></label>
                                <input type="text" style="width: 200px" name="code" id="code" placeholder="请输入验证码" autocomplete="off">
                                <a class="btn" href="javascript:void(0);" onclick="sendMobileCode();"
                                   id="sendMobileCode">
                                </a> &nbsp &nbsp
                                    <button style="width: 75px" type="button" class="layui-btn layui-btn-normal"
                                            onclick="mail()" name="btnSendCode" id="btnSendCode">获取
                                    </button>
                                </a>
                            </div>
                            <div class="user-pass">
                                <label for="password"><i class="am-icon-lock"></i></label>
                                <input type="password" name="password" id="password" placeholder="设置密码" autocomplete="off">
                            </div>
                            <div class="user-pass">
                                <label for="passwordRepeat"><i class="am-icon-lock"></i></label>
                                <input type="password" name="passwordRepeat" id="passwordRepeat" placeholder="确认密码" autocomplete="off">
                            </div>
                        </form>
                        <div class="login-links">
                            <label for="reader-me">
                                <input id="reader-me" type="checkbox"> 点击表示您同意商城《服务协议》
                            </label>
                        </div>
                        <div class="am-cf">
                            <input type="submit" name="" value="注册" class="am-btn am-btn-primary am-btn-sm am-fl">
                        </div>
                        <hr>
                    </div>
                </div>

                    <script>
                        $(function () {
                            $('#doc-my-tabs').tabs();
                        })
                    </script>

                </div>
            </div>
        </div>
    </div>
</div>

    <!--    验证代码-->
    <script src="../static/global.js"></script>
<script src="../static/layui-v2.5.6/layui/layui.js"></script>
    <script>
        layui.use(['form','layer','element'],function () {
            let $ = layui.$;
            let form = layui.form;
            let element = layui.element;


            let InterValObj; //timer变量，控制时间
            let count = 60; //间隔函数，1秒执行
            let curCount;//当前剩余秒数
            //发送验证码
            window.mail = function (){
                curCount = count;
                let email = $('#email').val();
                layer.msg('请稍后');
                document.getElementById("btnSendCode").setAttribute("disabled","true" );//设置按钮为禁用状态
                $('#btnSendCode').addClass('layui-btn-disabled');
                $('#btnSendCode').text(curCount + "秒后重获");
                InterValObj = window.setInterval(SetRemainTime, 1000); // 启动计时器timer处理函数，1秒执行一次

                let datas = form.val('zhuce');
                $.ajax({
                    url:"",
                    data:{},
                    type:"Post",
                    dataType:"json",
                    success:function(data){


                    },
                    error:function(data){
                        $.messager.alert('错误',data.msg);
                    }
                });

            }


            //timer处理函数
            window.SetRemainTime = function (){
                if(curCount == 0){
                    $('#btnSendCode').removeClass('layui-btn-disabled');
                    $('#btnSendCode').text("重新获取");
                    window.clearInterval(InterValObj);// 停止计时器
                    document.getElementById("btnSendCode").removeAttribute("disabled");//移除禁用状态改为可用
                } else{
                    curCount--;
                    $('#btnSendCode').text(curCount + "秒后重获");
                }
            }

        })


    </script>


    <div class="footer ">
        <div class="footer-hd ">
            <p>
                <a href="# ">恒望科技</a>
                <b>|</b>
                <a href="# ">商城首页</a>
                <b>|</b>
                <a href="# ">支付宝</a>
                <b>|</b>
                <a href="# ">物流</a>
            </p>
        </div>
        <div class="footer-bd ">
            <p>
                <a href="# ">关于恒望</a>
                <a href="# ">合作伙伴</a>
                <a href="# ">联系我们</a>
                <a href="# ">网站地图</a>
                <em>© 2015-2025 Hengwang.com 版权所有</em>
            </p>
        </div>
    </div>
</div>
</body>
</html>